﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Office.Interop.Word;

namespace WFL.Office.Word
{
    public class WordBorder
    {

        #region 公共属性

        public PageBorderArt ArtStyle
        {
            get { return (PageBorderArt)_border.ArtStyle; }
            set { _border.ArtStyle = (WdPageBorderArt)value; }
        }

        public int ArtWidth
        {
            get { return _border.ArtWidth; }
            set { _border.ArtWidth = value; }
        }

        public Color Color
        {
            get { return (Color)_border.Color; }
            set { _border.Color = (WdColor)value; }
        }

        public ColorIndex ColorIndex
        {
            get { return (ColorIndex)_border.ColorIndex; }
            set { _border.ColorIndex = (WdColorIndex)value; }
        }

        public LineStyle LineStyle
        {
            get { return (LineStyle)_border.LineStyle; }
            set { _border.LineStyle = (WdLineStyle)value; }
        }

        public LineWidth LineWidth
        {
            get { return (LineWidth)_border.LineWidth; }
            set { _border.LineWidth = (WdLineWidth)value; }
        }

        public bool Visible
        {
            get { return _border.Visible; }
            set { _border.Visible = value; }
        }

        #endregion


        private Border _border;

        internal WordBorder(Border border)
        {
            _border = border;
        }


        
    }
}
